//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    banners:[]
  },
  onLoad:function(options){
    var array = this.data.banners
    for(let i = 1;i<3;i++){
      array.push("/img/b-"+i+".png");
    }
    this.setData({ banners:array})
  },
  onReady:function(){

  },
  onShow:function(){

  },
  onHide:function() {

  }
})
